using UnityEngine;

public class UI3DManager : MonoBehaviour
{
    public UI3DSceneBase mUISceneFirst;
    public UI3DSceneBase mUISceneSecond;

    public void Open3DPanelByEnum(EPanel type)
    {
        switch (type)
        {
            case EPanel.First:
                mUISceneSecond.gameObject.SetActive(false);
                mUISceneFirst.gameObject.SetActive(true);
                break;
            case EPanel.Second:
                mUISceneSecond.gameObject.SetActive(true);
                mUISceneFirst.gameObject.SetActive(false);
                break;
            default:
                break;
        }
    }
    
    public void Open3DPanelByEnum(E3DPanel type)
    {
        switch (GameManager.mInstance.eCurPanelType)
        {
            case EPanel.First:
                mUISceneFirst.Open3DPanelByEnum(type);
                break;
            case EPanel.Second:
                mUISceneSecond.Open3DPanelByEnum(type);
                break;
            default:
                break;
        }
        
    }
}
